﻿<%@ WebHandler Language="C#" Class="HandlerUploadWhichProduct" %>

using System;
using System.Web;
using System.Data.SqlClient;
using Newtonsoft.Json;

public class HandlerUploadWhichProduct : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {

        //string categoryID = "1";
        //if (context.Request.QueryString["categoryID"] != null)
        //{
        //    categoryID = context.Request.QueryString["categoryID"];
        //}
        string strConn = global::LinkToDatabase.strConn;
        using (SqlConnection conn = new System.Data.SqlClient.SqlConnection(strConn))
        {
            string strCmd = "SELECT [category_id], [category_name] FROM [category]";
            
            
        }
        
        //context.Response.ContentType = "text/plain";
        //context.Response.Write("Hello World");
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}